package com.aorise.mapper.migration;

import com.aorise.model.migration.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
* @Author:cat
* @Description 迁建设备mybatis接口类
* @Date:Created in 2019-06-01
* @Modified By:
*/
@Mapper
@Component(value = "migrationCameraMapper")
public interface MigrationCameraMapper {

    /**
     * @Author:cat
     * @Description 根据迁建记录ID查询迁建设备
     * @params: map 查询条件Map
     * @Date:2019-06-03
     * @Return: List<MigrationCameraModel> 迁建设备集合
     * @Modified By:
     */
    List<MigrationCameraModel> getMigrationCameraByMigrationId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增迁建设备信息
     * @params: migrationCameraAddVO 迁建设备信息
     * @Date:2019-06-01
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addMigrationCamera(MigrationCameraAddVO migrationCameraAddVO) throws DataAccessException;

}